package com.ace.token.common.constant;

import com.ace.token.common.bean.ResponseDTO;

/**
 * 响应信息常量
 * @Author
 * @Date 2018年07月03日 上午7:36
 */
public interface R {

    /**
     * **********************************通用响应信息常量******************************************
     */
    ResponseDTO OK = new ResponseDTO("SUCCESS",0);
    ResponseDTO COMM_ERR_NOT_DEFINE = new ResponseDTO("未定义错误",1000);
    ResponseDTO COMM_ERR_PROTOCOL = new ResponseDTO("协议解析失败",1001);
    ResponseDTO COMM_ERR_INVALID_PARA = new ResponseDTO("协议无效的参数",1002);
    ResponseDTO COMM_ERR_NET_TIMEOUT = new ResponseDTO("网络超时",1003);
    ResponseDTO COMM_ERR_BUSINESS_TIMEOUT = new ResponseDTO("业务超时",1004);
    ResponseDTO COMM_ERR_NET_CONNECT = new ResponseDTO("网络连接断开",1005);
    ResponseDTO COMM_ERR_MEDIA_TYPE = new ResponseDTO("数据类型不支持",1006);
    ResponseDTO COMM_ERR_REQUEST_TYPE = new ResponseDTO("请求方式不正确",1007);

    /**
     * **********************************token响应信息常量******************************************
     */
    ResponseDTO COMM_ERR_NO_TOKEN = new ResponseDTO("token不能为空",2000);
    ResponseDTO COMM_ERR_INVALID_TOKEN = new ResponseDTO("校验token失败",2001);
    ResponseDTO COMM_ERR_CREATE_TOKEN = new ResponseDTO("建立token失败",2002);
    ResponseDTO COMM_ERR_UPDATE_TOKEN = new ResponseDTO("更新token失败",2003);
    ResponseDTO COMM_ERR_DELETE_TOKEN = new ResponseDTO("删除token失败",2004);
}
